package org.boyan.modules.controller;

import org.boyan.common.api.vo.Result;
import org.boyan.entity.cases.CaseType;
import org.boyan.modules.service.CaseTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/case/type")
public class CaseTypeController {
    @Autowired
    private CaseTypeService caseTypeService;

    @GetMapping
    public Result getCaseTypeList(){
        List<CaseType> caseTypeList=caseTypeService.getCaseTypeList();
        return Result.OK(caseTypeList);
    }
}
